package org.xuyuji.demo.xstream.bean.composite;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("Group")
public class Group {

	@XStreamAsAttribute
	private String id;
	
	@XStreamAsAttribute
	private long sort;
	
	@XStreamImplicit(itemFieldName="Voucher")
	private List<Voucher> list = new ArrayList<Voucher>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public long getSort() {
		return sort;
	}

	public void setSort(long sort) {
		this.sort = sort;
	}

	public List<Voucher> getList() {
		return list;
	}

	public void setList(List<Voucher> list) {
		this.list = list;
	}
}
